Skip to content

Conversation

@bamrith
Copy link
Contributor

@bamrith bamrith commented Oct 23, 2025

No description provided.

Copilot AI review requested due to automatic review settings October 23, 2025 15:34
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds functionality to fetch remote forkpoint and validators configuration files on node startup, falling back to local configs if remote fetching fails. The node compares remote and local forkpoint rounds to determine which is more recent.

  • Introduces environment variables for remote config URLs and HTTP client logic to fetch configurations
  • Refactors config loading to prioritize more recent remote configs over local ones
  • Updates struct fields to use parsed validators config instead of file path

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 5 comments.

File Description
monad-node/src/state.rs Adds remote config fetching logic with round-based comparison and fallback to local configs
monad-node/src/main.rs Removes redundant validators config loading by using pre-loaded config from NodeState
monad-node/Cargo.toml Adds reqwest dependency with blocking feature for HTTP requests
monad-node-config/src/lib.rs Introduces ValidatorsConfigType alias for type consistency

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@bamrith bamrith force-pushed the bharath/fetch_toml_files branch 6 times, most recently from d04761a to cfd0f2e Compare October 24, 2025 14:04
@bamrith bamrith force-pushed the bharath/fetch_toml_files branch from cfd0f2e to 8173fd2 Compare November 3, 2025 15:54
ariqchowdhury
ariqchowdhury previously approved these changes Nov 3, 2025
@bamrith bamrith force-pushed the bharath/fetch_toml_files branch from 156af23 to b2625ea Compare November 6, 2025 15:41
@bamrith bamrith enabled auto-merge November 6, 2025 15:43
@bamrith bamrith added this pull request to the merge queue Nov 6, 2025
Merged via the queue into master with commit 10e2605 Nov 6, 2025
3 checks passed
@bamrith bamrith deleted the bharath/fetch_toml_files branch November 6, 2025 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants